package xyz.yudan.app.dao.base;

/**
 * Created by gamy on 2018/4/6.
 */
public class BaseTeam {
    private String teamId = "";
    private String teamName = "";
    private String logoUrl = "";
    private String creatorUid = ""; //创建者
    private String managerUids = ""; //管理者列表
    private String memberUids = ""; //成员列表
    private String description = ""; //团队描述
    private int createTime = 0;

    public BaseTeam(BaseTeam team) {
        this.setTeamId(team.getTeamId());
        this.setTeamName(team.getTeamName());
        this.setLogoUrl(team.getLogoUrl());
        this.setCreatorUid(team.getCreatorUid());
        this.setManagerUids(team.getManagerUids());
        this.setMemberUids(team.getMemberUids());
        this.setCreateTime(team.getCreateTime());
        this.setDescription(team.getDescription());
    }

    public BaseTeam() {

    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getCreatorUid() {
        return creatorUid;
    }

    public void setCreatorUid(String creatorUid) {
        this.creatorUid = creatorUid;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public String getManagerUids() {
        return managerUids;
    }

    public void setManagerUids(String managerUids) {
        this.managerUids = managerUids;
    }

    public String getMemberUids() {
        return memberUids;
    }

    public void setMemberUids(String memberUids) {
        this.memberUids = memberUids;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String[] getMemberUidList() {
        if (this.getMemberUids() == null || this.getMemberUids().length() == 0) {
            return null;
        }
        return this.getMemberUids().split(",");
    }

    public String[] getManagerUidList() {
        if (this.getManagerUids() == null || this.getManagerUids().length() == 0) {
            return null;
        }
        return this.getManagerUids().split(",");
    }
}
